<%-- 
    Document   : FormEditProfilSekolah
    Created on : Nov 17, 2012, 11:45:54 AM
    Author     : Yo
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="bean.ProsesBean"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>Edit Profil</title>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet" type="text/css" />
        <link href="default.css" rel="stylesheet" type="text/css" media="all" />
    </head>
    <body>
        <%
            String username = (String) session.getAttribute("user");
            if (username == null) {
                username = "";
            }
        %>
        <div id="header" class="container">
            <div id="logo">
                <h1><a href="#">Pendafataran SMA Negeri Online</a></h1>
                <p>Yogyakarta</a></p>
            </div>
        </div>
        <div id="menu" class="container">
            <ul>
                <li><a href="FormHomeSekolah.jsp" accesskey="1" title="">Home Sekolah</a></li>
                <li><a href="FormProfilSekolah.jsp" accesskey="1" title="">Profil</a></li>
                <li   class="current_page_item"><a href="FormSeleksiSekolah.jsp" accesskey="2" title="">Seleksi</a></li>
                <li ><a href="FormDaftarDiterima.jsp" accesskey="3" title="">Daftar diterima</a></li>
                <li><a href="#" accesskey="4" title=""></a></li>
                <li><a href="#" accesskey="4" title=""></a></li>
             
               
                <li><a href="#" accesskey="4" title="">login as </a></li>
                <li><a href="#" accesskey="4" title=""><%=username%></a></li>
                <li><a href="FormUtama.jsp" accesskey="5" title="">logout</a></li>
            </ul>
        </div>

        <div id="page" class="container">

            <div id="content">
                <br><br>
                <br><br>

                <table border="0" cellspacing="0" cellpadding="5" width="700">
                    <tr valign="top" align="left">
                        <td width="100" height="64"></td>
                        <td width="600">
                            <form name="" method="post" action="ProsesEdit.jsp">
                                <h3>Edit Profil Sekolah</h3>
                                <table cellspacing="10">
                                    <%
                                        try {
                                            ProsesBean PK = new ProsesBean();%>
                                    <%
                                        ResultSet temp = PK.profilSekolah(username);
                                        while (temp.next()) {
                                    %>
                                    <tr>
                                        <td><p>Nama Sekolah</p></td>
                                        <td><p><input name="namaSekolah" type="text" value="<%=temp.getString(2)%>"></p></td>
                                    </tr>

                                    <tr>
                                        <td><p>Alamat Sekolah</p></td>
                                        <td><p><input name="alamatSekolah" type="text" value="<%=temp.getString(3)%>"></p></td>
                                    </tr>
                                    <tr>
                                        <td><p> Email Sekolah</p></td>
                                        <td><p><input name="emailsekolah" type="text" value="<%=temp.getString(4)%>"></p></td>
                                    </tr>

                                    <tr>
                                        <td><p>Kapasitas Penerimaan</p></td>
                                        <td><p><input name="quota" type="text" value="<%=temp.getString(5)%>"></p></td>
                                    </tr>
                                    <%            }
                                    %>
                                    <%
                                        } catch (Exception e) {
                                            e.getMessage();
                                        }
                                    %>

                                </table>
                                <br>

                                <input type="submit" value="Simpan">
                                </br>
                                <h4><a href="FormProfilSekolah.jsp">back profil sekolah</a></h4>

                            </form>
                        </td>
                    </tr>
                </table>
            </div>

        </div>
        <div id="footer">
            <p>Copyright (c) 2012 www.Vido_Dido.com </p>
        </div>
    </body>
</html>
